package org.foreveross.que.web.action.help;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.ParentPackage;
import org.apache.struts2.convention.annotation.Result;
import org.springframework.stereotype.Controller;

import org.foreveross.que.vo.FullTextVo;
import org.foreveross.que.web.action.BaseAction;

@Controller
@org.springframework.context.annotation.Scope("prototype")
@Namespace("/help/fullText")
@ParentPackage("json-default")
public class FullTextAction extends BaseAction {

	FullTextVo vo = new FullTextVo();
	
	@Action(value = "toJsp", results = {
			@Result(name = "dispatcher", type = "dispatcher", location = "/pages/help/fulltext_index.jsp"),
			@Result(name = "error", location = "/pages/errors/biz_error.jsp") })
	public String toJsp() throws Exception{
		return "dispatcher";
	}
	
	@Action(value = "fullTextSearch", results = {
			@Result(name = "dispatcher", type = "dispatcher", location = "/pages/help/fulltext_index.jsp"),
			@Result(name = "error", location = "/pages/errors/biz_error.jsp") })
	public String fullTextSearch() throws Exception{
		return "dispatcher";
	}
}
